<template>
  <div
    id="f0cad0adbcb447e4a2400dcfec2ca7e2"
    class="chart-container"
    style="width: 100%; height: 100%"
  ></div>
</template>

<script setup>
import * as echarts from "echarts";
import { onMounted } from "vue";

onMounted(() => {
  var chart_f0cad0adbcb447e4a2400dcfec2ca7e2 = echarts.init(
            document.getElementById('f0cad0adbcb447e4a2400dcfec2ca7e2'), 'white', {renderer: 'canvas'});
        var option_f0cad0adbcb447e4a2400dcfec2ca7e2 = {
            "grid": {
  // "top": 0,
  "right": 2,
  "bottom": 10,
  "left": 10,
  "containLabel": true
},
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "boxplot",
            "name": "\u5b66\u4e60\u538b\u529b\u5206\u5e03",
            "boxWidth": [
                7,
                50
            ],
            "selected_mode": false,
            "data": [
                [
                    1,
                    3.0,
                    4.0,
                    5.0,
                    5
                ],
                [
                    1,
                    1.0,
                    2.0,
                    3.0,
                    5
                ]
            ],
            "label": {
                "show": true,
                "margin": 8
            },
            "markPoint": {
                "label": {
                    "show": true,
                    "position": "inside",
                    "color": "#fff",
                    "margin": 8
                }
            },
            "markLine": {
                "silent": false,
                "precision": 2,
                "label": {
                    "show": true,
                    "margin": 8
                }
            },
            "itemStyle": {
                "color": "#FF8B8B",
                "borderColor": "#314656"
            },
            "rippleEffect": {
                "show": true,
                "brushType": "stroke",
                "scale": 2.5,
                "period": 4
            }
        }
    ],
    // "legend": [
    //     {
    //         "data": [
    //             "\u5b66\u4e60\u538b\u529b\u5206\u5e03"
    //         ],
    //         "selected": {
    //             "\u5b66\u4e60\u538b\u529b\u5206\u5e03": true
    //         },
    //         "show": true,
    //         "left": "center",
    //         "top": "5%",
    //         "padding": 5,
    //         "itemGap": 10,
    //         "itemWidth": 25,
    //         "itemHeight": 14,
    //         "backgroundColor": "transparent",
    //         "borderColor": "#ccc",
    //         "borderWidth": 1,
    //         "borderRadius": 0,
    //         "pageButtonItemGap": 5,
    //         "pageButtonPosition": "end",
    //         "pageFormatter": "{current}/{total}",
    //         "pageIconColor": "#2f4554",
    //         "pageIconInactiveColor": "#aaa",
    //         "pageIconSize": 15,
    //         "animationDurationUpdate": 800,
    //         "selector": false,
    //         "selectorPosition": "auto",
    //         "selectorItemGap": 7,
    //         "selectorButtonGap": 10
    //     }
    // ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "cross"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "xAxis": [
        {
            "type": "category",
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "axisLabel": {
                "show": true,
                "margin": 8,
                "interval": 0
            },
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "boundaryGap": true,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "\u6291\u90c1",
                "\u975e\u6291\u90c1"
            ]
        }
    ],
    "yAxis": [
        {
            "type": "value",
            "name": "\u5b66\u4e60\u538b\u529b\u503c",
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "min": 0.5,
            "max": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "splitArea": {
                "show": true,
                "areaStyle": {
                    "opacity": 1
                }
            }
        }
    ],
    "title": [
        {
            "show": true,
            "text": "\u5b66\u4e60\u538b\u529b\u4e0e\u6291\u90c1\u7684\u5173\u7cfb",
            "target": "blank",
            "subtarget": "blank",
            "left": "center",
            "top":10,
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false
        }
    ]
};
        chart_f0cad0adbcb447e4a2400dcfec2ca7e2.setOption(option_f0cad0adbcb447e4a2400dcfec2ca7e2);
    
});
</script>

<style lang="scss" scoped></style>
